04a7b2e5678cb619ef1495a559b7e90b21b54d85,xwiki-platform-tag/plugin/mailsender/src/main/java/com/xpn/xwiki/plugin/mailsender/MailSenderPlugin.java,MailSenderPlugin,sendMailFromTemplate,#String#String#String#String#String#String#VelocityContext#XWikiContext#,589
Before Change
Mail mail = new Mail();
try {
mail.setSubject(subject);
mail.setFrom((String) updatedVelocityContext.get("from.address"));
mail.setTo((String) updatedVelocityContext.get("to.address"));
String toBcc = (String) updatedVelocityContext.get("to.bcc");
After Change
XWikiVelocityRenderer.evaluate(htmlContent, templateDocFullName,
updatedVelocityContext);
Mail mail = new Mail();
mail.setFrom((String) updatedVelocityContext.get("from.address"));
mail.setTo((String) updatedVelocityContext.get("to.address"));
mail.setBcc((String) updatedVelocityContext.get("to.bcc"));
mail.setSubject(subject);
mail.setTextPart(msg);
mail.setHtmlPart(html);
try {